﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace drawDong
{
    public partial class Form11 : Form
    {
        public string type = "";
        public string color = "";

        public Form11()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.radioButton1.Checked)
            {
                this.type = this.radioButton1.Text;
                this.color = this.radioButton1.ForeColor.Name;
            }
            else if (this.radioButton2.Checked)
            {
                this.type = this.radioButton2.Text;
                this.color = this.radioButton2.ForeColor.Name;
            }
            else if (this.radioButton3.Checked)
            {
                this.type = this.radioButton3.Text;
                this.color = this.radioButton3.ForeColor.Name;
            }
            else if (this.radioButton4.Checked)
            {
                this.type = this.radioButton4.Text;
                this.color = this.radioButton4.ForeColor.Name;
            }
            else if (this.radioButton5.Checked)
            {
                this.type = this.radioButton5.Text;
                this.color = this.radioButton5.ForeColor.Name;
            }
            else if (this.radioButton6.Checked)
            {
                this.type = this.radioButton6.Text;
                this.color = this.radioButton6.ForeColor.Name;
            }
            else
            {
                MessageBox.Show("请选择文件包");
                return;
            }
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void Form11_Load(object sender, EventArgs e)
        {

        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            
        }
    }
}
